<!doctype html>



  


<html class="theme-next mist use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>



<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/blog/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/blog/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/blog/css/main.css?v=5.1.0" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="tool," />








  <link rel="shortcut icon" type="image/x-icon" href="/blog/favicon.ico?v=5.1.0" />






<meta name="description" content="记录下搭建个人blog的步骤，希望帮助到有需要的同学。 1、安装环境1.1 git环境下载git，并安装环境。（git环境用来将blog提交到码云上。）具体安装请参照：git环境搭建 1.2 node环境下载nodejs，安装环境。（node用来下载并构建hexo的环境。）具体安装请参照：node环境搭建、配置淘宝镜像 2、安装Hexo2.1 使用如下命令下载安装Hexonpm install -">
<meta name="keywords" content="tool">
<meta property="og:type" content="article">
<meta property="og:title" content="使用hexo+码云构建个人博客">
<meta property="og:url" content="https://gitee.com/shuhao/2017/11/13/使用hexo-码云构建个人博客/index.html">
<meta property="og:site_name" content="Niki">
<meta property="og:description" content="记录下搭建个人blog的步骤，希望帮助到有需要的同学。 1、安装环境1.1 git环境下载git，并安装环境。（git环境用来将blog提交到码云上。）具体安装请参照：git环境搭建 1.2 node环境下载nodejs，安装环境。（node用来下载并构建hexo的环境。）具体安装请参照：node环境搭建、配置淘宝镜像 2、安装Hexo2.1 使用如下命令下载安装Hexonpm install -">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="https://gitee.com/blog/images/使用hexo-码云构建个人博客/2017-11-13_160814.png">
<meta property="og:image" content="https://gitee.com/blog/images/使用hexo-码云构建个人博客/2017-11-13_161723.png">
<meta property="og:updated_time" content="2018-05-23T00:29:37.657Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="使用hexo+码云构建个人博客">
<meta name="twitter:description" content="记录下搭建个人blog的步骤，希望帮助到有需要的同学。 1、安装环境1.1 git环境下载git，并安装环境。（git环境用来将blog提交到码云上。）具体安装请参照：git环境搭建 1.2 node环境下载nodejs，安装环境。（node用来下载并构建hexo的环境。）具体安装请参照：node环境搭建、配置淘宝镜像 2、安装Hexo2.1 使用如下命令下载安装Hexonpm install -">
<meta name="twitter:image" content="https://gitee.com/blog/images/使用hexo-码云构建个人博客/2017-11-13_160814.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/blog/',
    scheme: 'Mist',
    sidebar: {"position":"right","display":"post","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://gitee.com/shuhao/2017/11/13/使用hexo-码云构建个人博客/"/>





  <title> 使用hexo+码云构建个人博客 | Niki </title>
</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  





  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?cb9f0585e406f878cb2f29c89ad3cdb7";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>










  
  
    
  

  <div class="container one-collumn sidebar-position-right page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/blog/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">Niki</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">天道酬勤</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/blog/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/blog/categories" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-categories"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/blog/archives" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/blog/tags" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
    <link itemprop="mainEntityOfPage" href="https://gitee.com/shuhao/blog/2017/11/13/使用hexo-码云构建个人博客/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Fang ShuHao">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/blog/images/head.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Niki">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">
            
            
              
                使用hexo+码云构建个人博客
              
            
          </h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-11-13T14:38:21+08:00">
                2017-11-13
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/blog/categories/Hexo/" itemprop="url" rel="index">
                    <span itemprop="name">Hexo</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    


    <div class="post-body" itemprop="articleBody">

      
      

      
        <p>记录下搭建个人blog的步骤，希望帮助到有需要的同学。</p>
<h2 id="1、安装环境"><a href="#1、安装环境" class="headerlink" title="1、安装环境"></a>1、安装环境</h2><h3 id="1-1-git环境"><a href="#1-1-git环境" class="headerlink" title="1.1 git环境"></a>1.1 git环境</h3><p>下载git，并安装环境。（git环境用来将blog提交到码云上。）具体安装请参照：<a href="http://www.runoob.com/git/git-install-setup.html" target="_blank" rel="external">git环境搭建</a></p>
<h3 id="1-2-node环境"><a href="#1-2-node环境" class="headerlink" title="1.2 node环境"></a>1.2 node环境</h3><p>下载nodejs，安装环境。（node用来下载并构建hexo的环境。）具体安装请参照：<a href="http://www.runoob.com/nodejs/nodejs-install-setup.html" target="_blank" rel="external">node环境搭建</a>、<a href="http://blog.csdn.net/zhangwenwu2/article/details/52778521" target="_blank" rel="external">配置淘宝镜像</a></p>
<h2 id="2、安装Hexo"><a href="#2、安装Hexo" class="headerlink" title="2、安装Hexo"></a>2、安装Hexo</h2><h3 id="2-1-使用如下命令下载安装Hexo"><a href="#2-1-使用如下命令下载安装Hexo" class="headerlink" title="2.1 使用如下命令下载安装Hexo"></a>2.1 使用如下命令下载安装Hexo</h3><figure class="highlight bash"><table><tr><td class="code"><pre><span class="line">npm install -g hexo-cli</span><br></pre></td></tr></table></figure>
<h3 id="2-2-运行如下命令创建hexo"><a href="#2-2-运行如下命令创建hexo" class="headerlink" title="2.2 运行如下命令创建hexo"></a>2.2 运行如下命令创建hexo</h3><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">hexo init &lt;folder&gt;</span><br><span class="line">cd &lt;folder&gt;</span><br><span class="line">hexo generate #(简化命令： hexo g)</span><br></pre></td></tr></table></figure>
<h3 id="2-3-现在你可以运行如下命令查看你的blog"><a href="#2-3-现在你可以运行如下命令查看你的blog" class="headerlink" title="2.3 现在你可以运行如下命令查看你的blog"></a>2.3 现在你可以运行如下命令查看你的blog</h3><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">hexo server #(简化命令 hexo s)</span><br></pre></td></tr></table></figure>
<p>浏览器输入：http:localhost:4000查看blog</p>
<h3 id="3-将blog发布到码云"><a href="#3-将blog发布到码云" class="headerlink" title="3 将blog发布到码云"></a>3 将blog发布到码云</h3><h3 id="3-1-注册一个码云上账号，新建项目。如：blog"><a href="#3-1-注册一个码云上账号，新建项目。如：blog" class="headerlink" title="3.1 注册一个码云上账号，新建项目。如：blog"></a>3.1 注册一个码云上账号，新建项目。如：blog</h3><img src="/blog/images/使用hexo-码云构建个人博客/2017-11-13_160814.png">
<h3 id="3-2-开启page服务"><a href="#3-2-开启page服务" class="headerlink" title="3.2 开启page服务"></a>3.2 开启page服务</h3><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">blog项目-&gt;服务-&gt;Pages</span><br></pre></td></tr></table></figure>
<img src="/blog/images/使用hexo-码云构建个人博客/2017-11-13_161723.png">
<h3 id="3-3-配置hexo的config"><a href="#3-3-配置hexo的config" class="headerlink" title="3.3 配置hexo的config"></a>3.3 配置hexo的config</h3><p>在hexo目录下找到_cofig文件，修改配置如下：<br><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line"># URL</span><br><span class="line">## If your site is put in a subdirectory, set url as &apos;http://yoursite.com/child&apos; and root as &apos;/child/&apos;</span><br><span class="line">url: https://gitee.com/shuhao # 你的码云地址</span><br><span class="line">root: /blog/ #码云新建的项目</span><br><span class="line">permalink: :year/:month/:day/:title/</span><br><span class="line">permalink_defaults:</span><br><span class="line"></span><br><span class="line"># Deployment</span><br><span class="line">## Docs: https://hexo.io/docs/deployment.html</span><br><span class="line">deploy:</span><br><span class="line">  type: git</span><br><span class="line">  repo: https://gitee.com/shuhao/blog</span><br><span class="line">  branch: master</span><br></pre></td></tr></table></figure></p>
<h3 id="3-3-运行如下命令安装git-deploy插件"><a href="#3-3-运行如下命令安装git-deploy插件" class="headerlink" title="3.3 运行如下命令安装git-deploy插件"></a>3.3 运行如下命令安装git-deploy插件</h3><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure>
<h3 id="3-4-运行如下命令将blog发布到码云上"><a href="#3-4-运行如下命令将blog发布到码云上" class="headerlink" title="3.4 运行如下命令将blog发布到码云上"></a>3.4 运行如下命令将blog发布到码云上</h3><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">hexo deploy #(简化命令 hexo d)</span><br></pre></td></tr></table></figure>
<p>发布完成后，使用开启pages服务产生的地址可访问blog 。eg：<a href="http://shuhao.gitee.io" target="_blank" rel="external">http://shuhao.gitee.io</a></p>
<h2 id="4-修改电脑后如何编写blog"><a href="#4-修改电脑后如何编写blog" class="headerlink" title="4 修改电脑后如何编写blog"></a>4 修改电脑后如何编写blog</h2><p>我们看码云上的项目，发现blog只是把项目的.deploy_git发布上去。该目录下面就是我们的日志信息。那么，我们怎么保存我们的hexo配置呢？<br>我们的解决方法是在码云上新建一个分支hexo，用来保存我们的hexo配置，更换电脑后我们拉取该分支的内容，并构建我们的hexo</p>
<h3 id="4-1-构建新的hexo分支"><a href="#4-1-构建新的hexo分支" class="headerlink" title="4.1 构建新的hexo分支"></a>4.1 构建新的hexo分支</h3><p>在码云上构建新的分支，取名hexo</p>
<h3 id="4-2-将原hexo配置信息push到hexo分支"><a href="#4-2-将原hexo配置信息push到hexo分支" class="headerlink" title="4.2 将原hexo配置信息push到hexo分支"></a>4.2 将原hexo配置信息push到hexo分支</h3><p>需要保存到hexo分支的内容有：<br><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">1、scaffolds目录</span><br><span class="line">2、source目录</span><br><span class="line">3、themes目录</span><br><span class="line">4、 .gitignore文件</span><br><span class="line">5、—config.yml文件</span><br><span class="line">6、db.json</span><br><span class="line">7、package.json</span><br></pre></td></tr></table></figure></p>
<h3 id="4-3-恢复原来的hexo"><a href="#4-3-恢复原来的hexo" class="headerlink" title="4.3 恢复原来的hexo"></a>4.3 恢复原来的hexo</h3><p>到新电脑上，拉取hexo分支的内容。cmd到新的目录，运行如下命令重新构建hexo<br><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">npm install hexo cli -g # 如果新电脑没有安装hexo</span><br><span class="line">npm g</span><br><span class="line">npm s</span><br></pre></td></tr></table></figure><br><strong><font color="#F08080">注意：</font></strong> 不要运行hexo init这条命令，否则hexo初始化，则之前的hexo配置被重置</p>
<h3 id="4-4-将新谢的博客上传到hexo分支"><a href="#4-4-将新谢的博客上传到hexo分支" class="headerlink" title="4.4 将新谢的博客上传到hexo分支"></a>4.4 将新谢的博客上传到hexo分支</h3><p>每次新建博客后，都需要将source_posts目录下的博客问价上传到hexo分支，用来保存新写的blog，以便在下次修改电脑后，可以获取blog数据。</p>
<h2 id="5-异常处理"><a href="#5-异常处理" class="headerlink" title="5 异常处理"></a>5 异常处理</h2><h4 id="5-1-hexo-util"><a href="#5-1-hexo-util" class="headerlink" title="5.1 hexo-util"></a>5.1 hexo-util</h4><p>在安装主题时往往会遇到如下异常：(安装next主题)<br><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">ERROR Script load failed: themes\next\scripts\tags\exturl.js</span><br><span class="line">Error: Cannot find module &apos;hexo-util&apos;</span><br></pre></td></tr></table></figure></p>
<p>解决方案如下：<br><figure class="highlight plain"><table><tr><td class="code"><pre><span class="line">npm install --save hexo-util</span><br></pre></td></tr></table></figure></p>
<h2 id="参考"><a href="#参考" class="headerlink" title="参考"></a>参考</h2><p><a href="https://hexo.io/zh-cn/docs/" target="_blank" rel="external">Hexo文档</a><br>搭建过程参考 <a href="http://z77z.oschina.io/2017/01/14/%E5%85%8D%E8%B4%B9%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2%E6%90%AD%E5%BB%BA%E6%95%99%E7%A8%8B%EF%BC%88%E8%AF%A6%E7%BB%86-%E5%9B%BE%E6%96%87%EF%BC%89--Hexo+OSChina/" target="_blank" rel="external">免费个人博客搭建教程</a></p>
<p><a href="http://wowubuntu.com/markdown/basic.html" target="_blank" rel="external">Markdowm简单语法</a></p>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>


    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/blog/tags/tool/" rel="tag"># tool</a>
          
        </div>
      

      
        
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/blog/2017/11/14/git命令-1/" rel="prev" title="git命令-1">
                git命令-1 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>

          
          </div>
          


          
  <div class="comments" id="comments">
    
      <div id="lv-container" data-id="city" data-uid="MTAyMC8zNjY5NS8xMzIzMA=="></div>
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/blog/images/head.jpg"
               alt="Fang ShuHao" />
          <p class="site-author-name" itemprop="name">Fang ShuHao</p>
           
              <p class="site-description motion-element" itemprop="description"></p>
          
        </div>
        <nav class="site-state motion-element">
        
          
            <div class="site-state-item site-state-posts">
              <a href="/blog/archives">
                <span class="site-state-item-count">135</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            <div class="site-state-item site-state-categories">
              <a href="/blog/categories">
                <span class="site-state-item-count">35</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          
            <div class="site-state-item site-state-tags">
              <a href="/blog/tags">
                <span class="site-state-item-count">93</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
        </div>

        
        

        
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#1、安装环境"><span class="nav-number">1.</span> <span class="nav-text">1、安装环境</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1-1-git环境"><span class="nav-number">1.1.</span> <span class="nav-text">1.1 git环境</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#1-2-node环境"><span class="nav-number">1.2.</span> <span class="nav-text">1.2 node环境</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2、安装Hexo"><span class="nav-number">2.</span> <span class="nav-text">2、安装Hexo</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#2-1-使用如下命令下载安装Hexo"><span class="nav-number">2.1.</span> <span class="nav-text">2.1 使用如下命令下载安装Hexo</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-2-运行如下命令创建hexo"><span class="nav-number">2.2.</span> <span class="nav-text">2.2 运行如下命令创建hexo</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2-3-现在你可以运行如下命令查看你的blog"><span class="nav-number">2.3.</span> <span class="nav-text">2.3 现在你可以运行如下命令查看你的blog</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-将blog发布到码云"><span class="nav-number">2.4.</span> <span class="nav-text">3 将blog发布到码云</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-1-注册一个码云上账号，新建项目。如：blog"><span class="nav-number">2.5.</span> <span class="nav-text">3.1 注册一个码云上账号，新建项目。如：blog</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-2-开启page服务"><span class="nav-number">2.6.</span> <span class="nav-text">3.2 开启page服务</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-3-配置hexo的config"><span class="nav-number">2.7.</span> <span class="nav-text">3.3 配置hexo的config</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-3-运行如下命令安装git-deploy插件"><span class="nav-number">2.8.</span> <span class="nav-text">3.3 运行如下命令安装git-deploy插件</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3-4-运行如下命令将blog发布到码云上"><span class="nav-number">2.9.</span> <span class="nav-text">3.4 运行如下命令将blog发布到码云上</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4-修改电脑后如何编写blog"><span class="nav-number">3.</span> <span class="nav-text">4 修改电脑后如何编写blog</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#4-1-构建新的hexo分支"><span class="nav-number">3.1.</span> <span class="nav-text">4.1 构建新的hexo分支</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#4-2-将原hexo配置信息push到hexo分支"><span class="nav-number">3.2.</span> <span class="nav-text">4.2 将原hexo配置信息push到hexo分支</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#4-3-恢复原来的hexo"><span class="nav-number">3.3.</span> <span class="nav-text">4.3 恢复原来的hexo</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#4-4-将新谢的博客上传到hexo分支"><span class="nav-number">3.4.</span> <span class="nav-text">4.4 将新谢的博客上传到hexo分支</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#5-异常处理"><span class="nav-number">4.</span> <span class="nav-text">5 异常处理</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#5-1-hexo-util"><span class="nav-number">4.0.1.</span> <span class="nav-text">5.1 hexo-util</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#参考"><span class="nav-number">5.</span> <span class="nav-text">参考</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Fang ShuHao</span>
</div>


<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Mist
  </a>
</div>


        

        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    
    
  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  




  
  <script type="text/javascript" src="/blog/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/blog/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/blog/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/blog/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/blog/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/blog/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/blog/js/src/utils.js?v=5.1.0"></script>

  <script type="text/javascript" src="/blog/js/src/motion.js?v=5.1.0"></script>



  
  

  
  <script type="text/javascript" src="/blog/js/src/scrollspy.js?v=5.1.0"></script>
<script type="text/javascript" src="/blog/js/src/post-details.js?v=5.1.0"></script>



  


  <script type="text/javascript" src="/blog/js/src/bootstrap.js?v=5.1.0"></script>



  



  




	





  





  





  
    <script type="text/javascript">
      (function(d, s) {
        var j, e = d.getElementsByTagName(s)[0];
        if (typeof LivereTower === 'function') { return; }
        j = d.createElement(s);
        j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
        j.async = true;
        e.parentNode.insertBefore(j, e);
      })(document, 'script');
    </script>
  



  
  

  

  

  

  


  

</body>
</html>
